FROM registry.cn-hangzhou.aliyuncs.com/gaodingx/docker-base-images:openjdk-8
COPY ./docker-entrypoint.sh ./

# gateway
COPY ./gateway/target/app.jar ./gateway/
# rpc-service
COPY ./rpc-service/target/app.jar ./rpc-service/


CMD [ "./docker-entrypoint.sh", "start", "gateway" ]

#CMD ./docker-entrypoint.sh stop gateway

HEALTHCHECK --interval=15s --timeout=1s --start-period=30s --retries=5 \
  CMD ./docker-entrypoint.sh healthcheck gateway
